using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace legend
{
    internal class Mylogger
    {
        public static string path = "c:/log.log";
        public static void log(string s) {
            using (StreamWriter sw = new StreamWriter(path, true))
            {
                sw.Write(DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + " ");
                sw.WriteLine(s);
                sw.Close();
            }

        }
    }
}
